<form name="search" method="post">
<input type="hidden" name="proc" value="graph" />
<table width="100%" border="0">
<tr>
    <td align="right" valign="top">Pelanggaran : </td>
	<td>
		<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border:1px solid #3366CC;" bgcolor="#FFFFFF">
		<?php $DEP = mysql_query("SELECT a.ACHIEV_ID, b.DETACHIEV_ID, a.ACHIEV_JENIS, a.ACHIEV_BIDANG, 
							 b.DETACHIEV_TINGKAT, b.DETACHIEV_NAMA  
					  FROM prestasipelanggaran as a, detil_prestasi_pelanggaran as b
					  WHERE a.ACHIEV_ID=b.ACHIEV_ID AND a.ACHIEV_JENIS='pelanggaran'"); $row=true?>
		<?php while ($row):?>
		<tr <?php echo tag_zebra($z++)?>>
			<?php for($i=0; $i<3; $i++): ?>
			<?php if ($row = mysql_fetch_assoc($DEP)) : ?>
			<td>
			<input name="detachievID[]" type="checkbox" value="<?php echo$row['DETACHIEV_ID']?>" onChange="load_graph($(this).getParent('form'))"/>
			<span class="marginL5"><?php echo $row['DETACHIEV_NAMA']?></span>
			</td>
			<?php else: ?><td></td>
			<?php endif;?>
			<?php endfor;?>
		</tr>
		<?php endwhile; ?>
		</table>
	</td>
</tr>
<tr>
    <td align="right">Periode : </td>
    <td><input type="text" id="periode1" name="periode1" value="<?php echo time()?>" /> - <input id="periode2" name="periode2" type="text" value="<?php echo time()?>" /></td>
</tr>
</table>
</form>
<div align="center" id="graphContainer" style="margin-top:20px">
<img id="graph" />
</div>
